home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000012_jdanskinner@compuserve.com_Tue Nov 25 09:49:51 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
  2. From: "Dan Skinner" <jdanskinner@compuserve.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Can Kermit check for a timeout condition or set one ?
  5. Date: Mon, 24 Nov 2003 21:48:40 -0600
  6. Organization: Posted via Supernews, http://www.supernews.com
  7. Message-ID: <vs5k8vq12hj58e@corp.supernews.com>
  8. References: <f0bb0f39.0311241204.2faa2067@posting.google.com> <slrnbs4qn0.2c9.fdc@sesame.cc.columbia.edu>
  9. X-Priority: 3
  10. X-MSMail-Priority: Normal
  11. X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
  12. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
  13. X-Complaints-To: abuse@supernews.com
  14. Lines: 34
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14688
  16.  
  17.  
  18. "Frank da Cruz" <fdc@columbia.edu> wrote in message
  19. news:slrnbs4qn0.2c9.fdc@sesame.cc.columbia.edu...
  20. > In article <f0bb0f39.0311241204.2faa2067@posting.google.com>,
  21. > newexpectuser wrote:
  22. > : I am using ssh to connect to a server via a Kermit Script.
  23. > :
  24. > : I don't want the script to still be running if it cannot connect, can
  25. > : Kermit check for a successful connection or a timeout condition and
  26. > : after this timeout, to give a message "Cannot connect...check other
  27. > : server".
  28. > :
  29. If you are using K95 you might try
  30. set host /net:ssh <server> /user:xxx /password:zzz
  31. and process result.
  32.  
  33. If you are using *nix kermit you might try
  34. set host <server> 22
  35. If it is an SSH server port it obviously will not connect, but the result
  36. will tell
  37. you it is an SSH server.
  38. If it says I'm an SSH server then do    ssh  <server>
  39. if not, just move on.
  40. Good Luck.
  41.  
  42. Regards...Dan.
  43.  
  44. > Internet connections will time out eventually if they can't be made.
  45. > The timeout occurs in the TCP/IP stack, not in Kermit.  The SET HOST
  46. > command will fail eventually.
  47. >
  48. > - Frank
  49.  
  50.  
  51.